import { Component } from "maishu-jueying";
import { Carousel, Props as ComponentProps } from "./component";
import { toggle } from "components/common/custom-prop-editors";
import { ItemsEditor } from "./items-editor";


let autoplay: keyof ComponentProps = "autoplay";
Component.setPropEditor({
    displayName: "自动播放",
    componentType: Carousel.name,
    propName: autoplay,
    editorType: toggle({ defaultValue: Carousel.defaultProps.autoplay })
})

let items: keyof ComponentProps = "items";
Component.setPropEditor({
    displayName: "轮播图片",
    componentType: Carousel.name,
    propName: items,
    editorType: ItemsEditor
})

